package com.sylingd.blog

import android.app.Activity
import android.app.Application
import com.r0adkll.slidr.Slidr
import okhttp3.OkHttpClient
import me.jessyan.progressmanager.ProgressManager



class BaseApplication: Application() {

	companion object {
		lateinit var instance: BaseApplication
			private set

		val mOkHttpClient: OkHttpClient by lazy {
			ProgressManager.getInstance().with(OkHttpClient.Builder()).build()
		}

		fun initSlidr(mActivity: Activity) {
			Slidr.attach(mActivity)
		}
	}

	override fun onCreate() {
		super.onCreate()
		instance = this
	}
}